<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="themes01/default/pstyle.css">
<script type="text/javascript" src="javascripts01/jquery.js"></script>
<script type="text/javascript" src="javascripts01/common.js"></script>
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
//定义标题
$nums=150;
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='96' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>&bbsclassid=<?=$_GET["bbsclass"]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
?>


</ul>
</div>
<form name="save" method="post" action="?ac=views&do=save&fileurl=bbs">
	<input type="hidden" name="savetype" value="edit" />
	<input type="hidden" name="bbsid" value="<?=$blog['id']?>" />
	<input type="hidden" name="author" value="<?=GET_INC_USER_NAME($_USER->id)?>" />

<table class="TableTop" width="90%">
   <tr>
      <td class="left"></td>
      <td class="center"><?=$blog["title"]?></td>
      <td class="right"></td>
   </tr>
</table>
 <table class="TableBlock no-top-border" width="90%">
   
	<input type="hidden" name="bbsclass" value="<?=$blog["bbsclass"]?>" />
	
	<tr>
      <td width="15%" align="center" nowrap class="TableContent" style="font-size:16px; font-weight:bold;">阅读&nbsp;<span style="font-size:34px; font-weight:bold; color:#FF0000;"><?=$blog['readnum']?></span>&nbsp;次</td>
      <td class="TableData" style="font-size:14px;">
      作者:<?=$blog["author"]?>&nbsp;&nbsp;&nbsp;&nbsp;来源:<?=$blog["origin"]?>&nbsp;&nbsp;&nbsp;&nbsp;发贴人:<?=GET_INC_USER_NAME($blog['uid'])?>&nbsp;&nbsp;&nbsp;&nbsp;发贴时间:<?=$blog['issuedate']?></td>
    </tr>
	
	<tr>
      <td colspan="2" nowrap class="TableData" style="padding-left:10px; padding-right:10px;">
        <?=$blog['content']?></td>
      </tr>
	  
	  
	  
	  
<?php
$n=0;
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."bbs_log where bbsid='".$blog["id"]."' ORDER BY id Asc");
	while ($row = $db->fetch_array($query)) {
$n++;
?>
<tr>
      <td colspan="2" nowrap class="TableHeader"> <?=$row['title']?>
        </td>
      </tr>
<tr>
      <td width="15%" align="center" nowrap class="TableContent" style="font-size:16px; font-weight:bold;"><span style="font-size:34px; font-weight:bold; color:#FF0000;"><?=$n?></span>&nbsp;楼</td>
      <td class="TableData" style="font-size:14px;">
      <?=$row["author"]?>于<?=$row['enddate']?>回复&nbsp;&nbsp;&nbsp;&nbsp;
	  <?php

if($_USER->id==$row['uid']){
echo '<a class="detail" href="admin.php?ac=views&fileurl=bbs&do=delete&id='.$row['id'].'&bbsid='.$blog['id'].'">删除</a>';
}
?>
	  </td>
    </tr>
	
	<tr>
      <td colspan="2" nowrap class="TableData" style="padding-left:10px; padding-right:10px;padding-bottom:40px;">
        <?=$row['content']?></td>
      </tr>
<?php
	}
?>	  
	  
	  
	  
	  
	  
	  
	  
	  
	  
	  
	  
<tr>
      <td colspan="2" nowrap class="TableHeader"> 回贴
        </td>
      </tr>
<tr>
      <td nowrap class="TableContent" width="15%"> 回复主题：</td>
      <td class="TableData">
      <input type="text" name="title" class="BigInput" style="width:368px;" size="20" value="回复:<?=$blog["title"]?>" /></td>
    </tr>

</table>
<table  width="90%" style="border-left:#CCCCCC solid 1px;border-right:#CCCCCC solid 1px;border-bottom:#CCCCCC solid 1px;">
    <tr>
      <td width="15%"  style="border-right:#CCCCCC solid 1px;">&nbsp;回复内容：</td>
      <td width="85%" style="padding-top:10px; padding-bottom:10px; padding-left:3px;"><script charset="utf-8" src="eweb/kindeditor.js"></script>
<script>
        KE.show({
                id : 'content'
        });
</script>
		<textarea name="content" cols="70" rows="12" class="input" style="width:600px;height:200px;"></textarea>	 
      </td>
    </tr>
</table>
  <table class="TableBlock no-top-border" width="90%"> 
    
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap height="35">

		<input type="submit" name="Submit" value="保存信息" class="BigButton">      </td>
    </tr>
  </table>
</form>
</div>
</div>
 
<script language="javascript" src="javascripts01/tangram-1.3.1.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/elf.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/union.js" type="text/javascript"></script>
<script language="javascript" src="javascripts01/codeMgr.js" type="text/javascript"></script>
 
</body>
</html>
